package la.ge.server;

import la.ge.server.gs2ge.GSSetting;
import la.ge.server.servlets.URLEncodeInputUIServlet;
import la.ge.server.servlets.URLEncodeOutputUIServlet;
import la.ge.server.servlets.gs2ge.GetBigNodeGSResultServlet;
import la.ge.server.servlets.gs2ge.GetPlainGSResultServlet;
import la.ge.server.servlets.gs2ge.ui.GEURLGeneratorServlet;
import la.ge.server.servlets.repository.uploader.UploadServlet;
import la.ge.server.servlets.repository.uploader.UploadUIServlet;
import la.ge.server.servlets.repository.viewer.RespositoryViewerServlet;
import la.ge.server.servlets.repository.viewer.ViewerServlet;


public class GeServerContext {

	public static final String ATTRIB_NAME = "geServerContext";
	private final Class[] servletList = { UploadUIServlet.class,
			UploadServlet.class,
			ViewerServlet.class,
			RespositoryViewerServlet.class,
			GetPlainGSResultServlet.class,
			GetBigNodeGSResultServlet.class,
			URLEncodeInputUIServlet.class,
			URLEncodeOutputUIServlet.class,
			GEURLGeneratorServlet.class,
	};
	
	private final GSSetting gsSetting = new GSSetting();
	
	public String getServletPath(Class theClass) {
		return "/servlets/" + theClass.getName();
	}
	
	public Class[] getServletList() {
		return servletList;
	}

	public GSSetting getGsSetting() {
		return gsSetting;
	}
}
